package com.example.wechatappbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("orders")
public class Order {
    @TableId(value = "order_id", type = IdType.AUTO)
    private String orderId;
    @TableField(value = "user_id")
    private String userID;
    @TableField(value = "rank")
    private String rank;
    @TableField(value = "people_number")
    private int peopleNum;
    @TableField(value = "estimated_time")
    private String estimatedTime;
    @TableField(value = "order_time")
    private String orderTime;
    @TableField(value = "payment_time")
    private String paymentTime;
    @TableField(value = "payment_method")
    private String paymentMethod;
    @TableField(value = "subtotal")
    private String subtotal;
    @TableField(value = "status")
    private int status;
    @TableField(value = "restaurant_name")
    private String restaurantName;
    @TableField(value = "restaurant_avatar")
    private String restaurantAvatar;
    @TableField(value = "order_price")
    private String orderPrice;

}
